/* This file is part of BonQ - A simple HTTP-based messaging server.
 * Copyright (C) 2009 James Cook
 *
 * BonQ is free software: you can redistribute it and/or modify it under the
 * terms of the GNU General Public License, version 2, as published by the
 * Free Software Foundation.
 *
 * BonQ is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE.  See the GNU General Public License, version 2,
 * for more details.
 *
 * You should have received a copy of the GNU General Public License, version
 * 2, along with BonQ.  If not, see:
 *
 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 */
package com.bonkabonka.queue;

/**
 * Indicate that a Queue is interested in the HTTP request query string.
 *
 * @author jamesc
 */
public interface QueriedQueue
{
    /**
     * Adds a message to the FIFO, modified by the supplied query.
     *
     * @param message String containing the message
     * @param query String containing the HTTP request query string
     * @return String containing status
     */
    public abstract String push(String message, String query);
}
